package com.jielihaofeng.chat.convert;

import com.jielihaofeng.chat.entity.ChatUserRelationEntity;
import com.jielihaofeng.chat.vo.ChatUserRelationVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 用户好友表
*
* @author 借力好风 949394048@qq.com
* @since 1.0.0 2022-07-22
*/
@Mapper
public interface ChatUserRelationConvert {
    ChatUserRelationConvert INSTANCE = Mappers.getMapper(ChatUserRelationConvert.class);

    ChatUserRelationEntity convert(ChatUserRelationVO vo);

    ChatUserRelationVO convert(ChatUserRelationEntity entity);

    List<ChatUserRelationVO> convertList(List<ChatUserRelationEntity> list);

}